package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.entity.Menu;
import com.sangeng.domain.vo.MenuVo;
import com.sangeng.domain.vo.RoleMenuVo;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2024-08-21 23:20:54
 */
public interface MenuService extends IService<Menu> {

    ////根据当前用户id查询权限信息
    List<String> selectPermsByUserId(Long id);

    List<MenuVo> selectRoutersMenusByUserId(Long userId);

    ResponseResult getList(String status, String menuName);

    ResponseResult addMenu(Menu menu);

    ResponseResult updateMenu(Menu menu);

    ResponseResult deleteByMenuId(Long menuId);

    List<RoleMenuVo> treeSelect();

    ResponseResult roleMenuTreeSelect(Long id);
}
